Release 10.1A: OpenEdge Development:
ADM Reference


assignLinkProperty

Sets a property value in one or more SmartObjects at the other end of a specified link, relative to the TARGET–PROCEDURE.

Location: smart.p

Parameters:

INPUT pcLink AS CHARACTER

Link type.

INPUT pcPropName AS CHARACTER

Property name.

INPUT pcPropValue AS CHARACTER

Property value.

Returns: LOGICAL (TRUE if the property set-function succeeded, else FALSE.)

Notes:

/* This example code from the updateRecord procedure makes sure that when 
   an update completes, and the DataModified property is turned off in 
   the SmartDataViewer which initiated the update, it is also turned off 
   in all other Viewers which may be linked in a GroupAssign. */ 
lSuccess = dynamic-function(‘assignLinkProperty’, INPUT 
   ‘GroupAssign-Target’:U, INPUT ‘DataModified’:U, ‘no’:U). 

/* This example will move focus to the first enabled and visible field in 
   the SmartDataViewer vCust. The handle hvCust would normally be 
   available in the SmartDataViewer’s container. This statement could 
   follow a message indicating that values needed to be entered for the 
   current record, for example.*/ 
RUN applyEntry IN hvCust (?). 
/* This example applied focus to a specific field ("City") in a 
   SmartDataViewer. This could result from field validation failing for 
   field, for example. See updateRecord in the super procedure 
   datavis.p for an actual example of how the ADM repositions focus to a 
   specific field.*/ 
RUN applyEntry In hvCust ("City":U). 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095